package com.ruoyi.system.service.impl;

import com.ruoyi.system.domain.SysChannel;
import com.ruoyi.system.mapper.SysChannelMapper;
import com.ruoyi.system.service.ISysChannelService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class SysChannelServiceImpl implements ISysChannelService {
    @Resource
    SysChannelMapper sysChannelMapper;
    @Override
    public List<SysChannel> selectChannelList(SysChannel channel) {
        return sysChannelMapper.selectChannelList(channel);
    }

    @Override
    public List<SysChannel> selectChannelDetail(SysChannel channel) {
        return sysChannelMapper.selectChannelDetail(channel);
    }

    @Override
    public List<SysChannel> selectChannelManage(SysChannel channel) {
        return sysChannelMapper.selectChannelManage(channel);
    }

    @Override
    public List<SysChannel> selectChannelAll(SysChannel channel) {
        return sysChannelMapper.selectChannelAll(channel);
    }

    @Override
    public List<SysChannel> selectChannelnameList() {
        return sysChannelMapper.selectChannelnameList();
    }

    @Override
    public SysChannel selectChannelmanageByid(int channelId) {
        return sysChannelMapper.selectChannelmanageByid(channelId);
    }

    @Override
    public int insertChannelmanage(SysChannel channel) {
        return sysChannelMapper.insertChannelmanage(channel);
    }

    @Override
    public int updateChannelmanage(SysChannel channel) {
        return sysChannelMapper.updateChannelmanage(channel);
    }

    @Override
    public int deleteChannelById(int channelId) {
        return sysChannelMapper.deleteChannelById(channelId);
    }
}
